import axios from "axios"
// import router from "../router";
import GLOBALS from "../../../components/global_jk";
axios.defaults.withCredentials = true; //允许请求的时候携带认证


// 外包人员请假及外出

// 查询外包人员外出请假登录历史
export const getList = (data) => axios({
    url: GLOBALS.serverSrc + "/RegistrationController/list", //部署到测试环境地址
    method: "post",
    data
  })
// 查询出发地
export const getDepa = (data) => axios({
    url: GLOBALS.serverSrc + "/RegistrationController/depa", //部署到测试环境地址
    method: "post",
    data
  })
// 查询目的地
export const getDest = (data) => axios({
    url: GLOBALS.serverSrc + "/RegistrationController/dest", //部署到测试环境地址
    method: "post",
    data
  })
// 查询外出事由
export const getCause = (data) => axios({
    url: GLOBALS.serverSrc + "/RegistrationController/cause", //部署到测试环境地址
    method: "post",
    data
  })
// 添加
export const getAdd = (data) => axios({
    url: GLOBALS.serverSrc + "/RegistrationController/add", //部署到测试环境地址
    method: "post",
    data
  })